package model;

public class Input {
	public static int REGULA_FALSI_METHOD = 1;
	public static int SECANT_METHOD = 2;
	
	private Polynomial poly;
	private double x1;
	private double x2;
	private int method;
	private int maxIterations;
	private double tolerance;
	
	public Input(String strPoly, double x1, double x2, int method, int maxIterations, double tolerance){
		this.poly = new Polynomial(strPoly);
		this.x1 = x1;
		this.x2 = x2;
		this.method = method;
		this.maxIterations = maxIterations;
		this.tolerance = tolerance;
	}
	
	public Polynomial getPolynomial(){		return poly;			}
	public double getX1(){					return x1;				}
	public double getX2(){					return x2;				}
	public int getMethod(){					return method;			}
	public int getMaxIterations(){			return maxIterations;	}
	public double getTolerance(){			return tolerance;		}
}
